package a02objectDemo;

import java.util.Objects;

public class Test {
    public static void main(String[] args) {
        Student st1 = null;
        Student st2 = new Student("zhangsan",20);
        /*boolean result = st1.equals(st2);
        System.out.println(result);*/
        boolean result = Objects.equals(st1, st2);
        System.out.println(result);
        System.out.println(Objects.isNull(st1));
    }
}
